package com.soushangxing.comfyuibackendv2.repository

import com.soushangxing.comfyuibackendv2.entity.ModelEntity
import org.springframework.data.mongodb.repository.MongoRepository
import java.util.*

interface ModelRepository : MongoRepository<ModelEntity, String> {
    fun findFirstByTypeCode(typeCode:String):ModelEntity?

    fun findAllByStatus(status:String):List<ModelEntity>
    fun findByName(name: String): Optional<ModelEntity>
}
